﻿using System;
using UnityEngine;

namespace Studio
{
	// Token: 0x02000522 RID: 1314
	public class ShortcutMenuScene : MonoBehaviour
	{
		// Token: 0x06002174 RID: 8564 RVA: 0x000CCA34 File Offset: 0x000CAC34
		private void Awake()
		{
			this.timeScale = Time.timeScale;
			Time.timeScale = 0f;
		}

		// Token: 0x06002175 RID: 8565 RVA: 0x000CCA4C File Offset: 0x000CAC4C
		private void Update()
		{
			if (Input.GetMouseButtonDown(1) || Input.GetKeyDown(KeyCode.F2))
			{
				Singleton<Scene>.Instance.UnLoad();
			}
		}

		// Token: 0x06002176 RID: 8566 RVA: 0x000CCA74 File Offset: 0x000CAC74
		private void OnDestroy()
		{
			Time.timeScale = this.timeScale;
		}

		// Token: 0x040022DF RID: 8927
		private float timeScale = 1f;
	}
}
